Skip to content

fix(capacitor): resolve initWithRegion on iOS so the promise no longer hangs (FR-25945)#92

Merged
dianaKhortiuk-frontegg merged 1 commit into
masterfrom
fix/cap-ios-initwithregion-resolve
Jul 22, 2026
Merged

fix(capacitor): resolve initWithRegion on iOS so the promise no longer hangs (FR-25945)#92
dianaKhortiuk-frontegg merged 1 commit into
masterfrom
fix/cap-ios-initwithregion-resolve

Conversation

@dianaKhortiuk-frontegg

Copy link
Copy Markdown
Collaborator

FR-25945 — iOS initWithRegion never resolves (promise hangs)

ios/Plugin/FronteggNativePlugin.swift initWithRegion() called fronteggApp.initWithRegion(...) but never called call.resolve(), so the JS promise from FronteggService.initWithRegion hung forever on iOS. Android already resolves. Any await-based region-selection flow (e.g. the example's region.guard.ts) stalled.

Fix

Call call.resolve() after initWithRegion on iOS.

Note

iOS-only; verified via swiftc -parse. Not compiled in a full iOS build here (no iOS build harness) — please let CI confirm.

…r hangs (FR-25945)

ios/Plugin/FronteggNativePlugin.swift initWithRegion() called fronteggApp.initWithRegion(...)
but never called call.resolve(), so the JS promise from FronteggService.initWithRegion hung
forever on iOS (Android already resolves). Any await-based region-selection flow (e.g. the
example's region.guard.ts) stalled. Resolve the call after initWithRegion.
@dianaKhortiuk-frontegg
dianaKhortiuk-frontegg merged commit c123ef2 into master Jul 22, 2026
1 check passed
@dianaKhortiuk-frontegg
dianaKhortiuk-frontegg deleted the fix/cap-ios-initwithregion-resolve branch July 22, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant